#ifndef HELLO_CLIENTINFO_H
#define HELLO_CLIENTINFO_H
#include <arpa/inet.h>
#include "../hashtbl.h"

/**
 * Represents informations about client
 */
struct client_info {
    char    *name;      // IP address
    time_t   timestamp; // last seen
    int      intervals; // # of intervals since last hello from this client, < tab_len;
    HASHTBL *interests; // client interests list

};

/**
 * returns list length
 */
uint32_t length(HASHTBL *hash);

/**
 * returns sum of label lengths (including every '\0' character)
 */
uint32_t labsize(HASHTBL *hash);

#endif // HELLO_CLIENTINFO_H
